package com.qfedu.wfx.exception.controller;

import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
@ControllerAdvice
public class UnKnowAuthorizationExceptionAdvice {
    @ExceptionHandler(AuthorizationException.class)
    public String toErrorPage(){
        return "nopermissioin";
    }
}
